package com.dt.dubai.mber.service;

import com.dt.dubai.mber.entity.MberCustomerIntegralEntity;
import com.dt.dubai.mber.service.innate.MberCustomerIntegralSerInnateAbsImp;
import com.dt.dubai.mber.service.ser.MberCustomerIntegralService;
import org.springframework.stereotype.Service;

@Service
public class MberCustomerIntegralServiceImp extends MberCustomerIntegralSerInnateAbsImp implements MberCustomerIntegralService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(MberCustomerIntegralEntity inEntity) {

    }

    @Override
    protected void userModEntity(MberCustomerIntegralEntity inEntity, MberCustomerIntegralEntity upEntity) {
        upEntity.setCustomerRecordId(inEntity.getCustomerRecordId()); // 顾客登录记录ID
        upEntity.setTradeType(inEntity.getTradeType()); // 交易类型
        upEntity.setOpponent(inEntity.getOpponent()); // 对方单号
        upEntity.setDebitAmount(inEntity.getDebitAmount()); // 借积分
        upEntity.setCreditAmount(inEntity.getCreditAmount()); // 贷积分
        upEntity.setTradeMessage(inEntity.getTradeMessage()); // 交易信息
        upEntity.setTradeState(inEntity.getTradeState()); // 交易状态

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/

    public void queryPointDetails(Long userId){

    }

}
